@echo off
setlocal enabledelayedexpansion 
set JAVA=%JAVA_HOME%\bin\java
set OPTS= -jar
set lib=%~dp0..\lib
set config=%~dp0..\config

set CP=%CONFIG%;
set MAIN=com.ldl.bigfilesync.FileNotify
  
for /f %%i in ('dir /b %lib%\*.jar^|sort') do (
   set CP=!CP!%lib%\%%i;
)

java -Djava.library.path=%lib% -classpath %CP%  %MAIN% %*

